package com.cr.admin.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cr.admin.system.pojo.entity.SysUserRole;

import java.util.List;

public interface SysUserRoleMapper extends BaseMapper<SysUserRole> {

    int insertBatchUserRole(List<SysUserRole> userRoleList);

    int deleteUserRoleByUserId(Long userId);

    int deleteUserRoleByUserIds(List<Long> userIds);

    int deleteUserRoleByRoleId(Long roleId);

    int deleteUserRoleByRoleIds(List<Long> roleIds);

    List<Long> selectRoleIdsByUserId(Long userId);

}
